﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SusuCMS
{
    public class PageImageRepository : RepositoryBase, IPageImageRepository
    {
        public PageImageRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { }

        public IQueryable<PageImage> FindAll()
        {
            return _CmsDataContext.PageImages;
        }

        public void Add(PageImage entity)
        {
            _CmsDataContext.PageImages.Add(entity);
        }

        public void Remove(PageImage entity)
        {
            _CmsDataContext.PageImages.Remove(entity);
        }
    }
}
